package com.kbt.listener;

import android.app.Activity;
import android.widget.PopupWindow;
import com.kbt.util.tool.PopWindowSetting;

/**
 * @author zhgk
 * @package: com.kbt.listener
 * @TODO: 监听PopWindow的窗口销毁事件
 * @data: 2015/8/11 11:56
 * @version: V1.0
 */
public class PopWindowDismissListener implements PopupWindow.OnDismissListener {

    private Activity activity;

    /***
     * 构造函数
     *
     * @param context
     */
    public PopWindowDismissListener(Activity context) {
        this.activity = context;
    }

    /**
     * 设置父窗体背景为白
     */
    @Override
    public void onDismiss() {
        PopWindowSetting.setParentBackGround(activity, 1.0f);
    }
}
